diff -rupN wvstreams-4.6.1-orig/utils/wvuid.cc wvstreams-4.6.1/utils/wvuid.cc
--- wvstreams-4.6.1-orig/utils/wvuid.cc	2008-07-15 05:11:35.000000000 +1000
+++ wvstreams-4.6.1/utils/wvuid.cc	2014-10-26 07:15:52.435281654 +1000
@@ -33,6 +33,7 @@ wvuid_t wvgetuid()
 
 #else // not WIN32
 
+#include <unistd.h>
 
 WvString wv_username_from_uid(wvuid_t uid)
 {
